package com.bdsy.business.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.bdsy.business.model.ShopAuOrder;

public interface ShopAuOrderMapper {

	int add(ShopAuOrder shopAuOrder);
	
	List<Map> selectShopAuOrderById(@Param(value="auOrderStatus")int auOrderStatus,@Param(value="userId")String userId);
	
	List<Map> selectShopAuOrder(int shopId);
	
	int update(ShopAuOrder shopAuOrder);
	
	List<Map> selectAOrNShopAuOrder(@Param(value="auOrderStatus")int auOrderStatus,@Param(value="userId")String userId,@Param(value="shopTypeId")int shopTypeId,@Param(value="qx")int qx);
	
	//竞拍物品
	int jsellCount(String userId);
    //已完成订单 
    int jacount(String userId); 
    //未完成订单
    int jncount(String userId);


    /**
     * 查询竞拍订单信息
     * @param auOrderStatus
     * @param shopTypeId
     * @param userId
     * @return
     */
    List<Map> selectAuOrderByTypeOrStatus(@Param(value="auOrderStatus")int auOrderStatus,@Param(value="shopTypeId")int shopTypeId,@Param(value="userId")String userId);

}
